<%--
  Created by IntelliJ IDEA.
  User: Mr_Liu
  Date: 2022/2/25
  Time: 18:06
  To change this template use File | Settings | File Templates.
--%>
    <%@ page contentType="text/html;charset=UTF-8" language="java" %>
        <%@ taglib prefix="C" uri="http://java.sun.com/jsp/jstl/core" %>
            <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
                <%@ page import="com.Liuhang.entity.user" %>
                    <%@ page import="java.util.List" %>
                        <%@ page import="com.Liuhang.Dao.getUserList" %>
                            <%@ page import="com.Liuhang.Dao.getDepList" %>
                                <html>

                                <head>
                                    <title>Title</title>
                                </head>

                                <body>
                                    <%  List list = getDepList.getList();
                                            request.setAttribute("list",list);%>
                                        <form action="user_insert" method="get">
                                            请输入你的用户名 ：<input name="username" type="text"><br> 性别：
                                            <input name="sex" type="radio" value="男">男
                                            <input name="sex" type="radio" value="女">女 <br>
                                            <select name="dep">
                                                <c:forEach var="u" items="${list}">
                                                <option value="${u.getPid()}"><C:out value="${u.getDep_name()}"/></option>
                                                </c:forEach>
                                            </select><br> 密码：
                                            <input name="password" type="password"><br> 电话号码：
                                            <input name="phone" type="text"><br> 薪资：
                                            <input name="money" type="text">

                                            <button type="submit">提交</button>
                                            <button type="reset">重置</button>
                                        </form>
                                </body>

                                </html>